git-iconv-Support-in-place-conversions-bug-10460-bug-320
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 15 Feb 2025 10:20:09 +0000 (11:20 +0100)
committerAurelien Jarno <aurel32@debian.org>
Sat, 15 Feb 2025 10:20:09 +0000 (11:20 +0100)
commitbcc0f38e2cde8b9aa49df6af1431d98b8edab87e
tree4e70dc6974180f9933490162d50cb5e5b16282f8
parent556565b4235db980531bc9cda1c4b4b9c646b83e
git-iconv-Support-in-place-conversions-bug-10460-bug-320

commit f432d9495d428eef0455376e4de666d0a6748040
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Sep 20 13:10:54 2024 +0200

    iconv: Support in-place conversions (bug 10460, bug 32033)

    Check if any of the input files overlaps with the output file, and use
    a temporary file in this case, so that the input is no clobbered
    before it is read.  This fixes bug 10460.  It allows to use iconv
    more easily as a functional replacement for GNU recode.

    The updated output buffer management truncates the output file
    if there is no input, fixing bug 32033.

Reviewed-by: DJ Delorie <dj@redhat.com>
Gbp-Pq: Topic any
Gbp-Pq: Name git-iconv-Support-in-place-conversions-bug-10460-bug-320.patch
iconv/Makefile
iconv/iconv_prog.c
iconv/tst-iconv_prog-buffer.sh